package com.tanhua.dubbo.server.api;

import com.tanhua.dubbo.server.pojo.Video;
import com.tanhua.dubbo.server.vo.PageInfo;

import java.util.List;

public interface VideoApi {

    /**
     * 保存小视频
     *
     * @param video
     * @return
     */
    String saveVideo(Video video);

    /**
     * 分页查询小视频列表，按照时间倒序排序
     *
     * @param page
     * @param pageSize
     * @return
     */
    PageInfo<Video> queryVideoList(Integer page, Integer pageSize);

    /**
     * 取消关注用户
     *
     * @param userId
     * @param followUserId
     * @return
     */
    Boolean disFollowUser(Long userId, Long followUserId);

    /**
     * 关注用户
     *
     * @param userId
     * @param followUserId
     * @return
     */
    Boolean followUser(Long userId, Long followUserId);

    /**
       * @Description: 根据id查询小视频
       * @Param:[videoId]
       * @return:com.tanhua.dubbo.server.pojo.Video
       * @Author:JinboYang
       * @Date:2021/1/11
       */
    Video queryVideoById(String videoId);

    /**
       * @Description: 根据vids批量查询视频列表
       * @Param:[vids]
       * @return:java.util.List<com.tanhua.dubbo.server.pojo.Video>
       * @Author:JinboYang
       * @Date:2021/1/11
       */
    List<Video> queryVideoListByVids(List<Long> vids);
}
